/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package service;

import java.util.List;
import pojo.LotteryDrawHistory;
import pojo.User;

/**
 *
 * @author beryl
 */
public interface ILotteryService<T extends LotteryDrawHistory> extends IService<T> {

    Integer getBase_prize();

    long getDraw_inteval();

    int getPercentage_miss();

    int getPercentage_price_to_prize();

    int getPercentage_rollover();

    int getTicketPrice();

    boolean isEnabled();

    void setBase_prize(Integer base_prize);

    void setDraw_inteval(long draw_inteval);

    void setEnabled(boolean enabled);

    void setPercentage_miss(int percentage_miss);

    void setPercentage_price_to_prize(int percentage_price_to_prize);

    void setPercentage_rollover(int percentage_rollover);

    void setTicketPrice(int ticketPrice);

    void buyTicket(User u);

    List<T> listPastDraws(int size);

    int countTicket(String userid, int drawid);
}
